/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package serverapp;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *
 * @author paciks
 */
public class MatchPlayers implements Serializable{
    
    private ArrayList<Player> homePlayers = new ArrayList();
    private ArrayList<Player> awayPlayers = new ArrayList();
    
    public MatchPlayers() {};
    
    // Tutaj nie ma znaczenia czy zapiszemy do away czy do home.
    public MatchPlayers(ArrayList<Player> players) {
        this.homePlayers = players;
    }
    
    public MatchPlayers(ArrayList<Player> homePlayers, ArrayList<Player> awayPlayers) {
        this.homePlayers = homePlayers;
        this.awayPlayers = awayPlayers;
    }
    
    public ArrayList<Player> getHome() {
        return this.homePlayers;
    }
    
    public void setHome(ArrayList<Player> homePlayers) {
        this.homePlayers = homePlayers;
    }
    
    public ArrayList<Player> getAway() {
        return this.awayPlayers;
    }
    
    public void setAway(ArrayList<Player> awayPlayers) {
        this.awayPlayers = awayPlayers;
    }
    
    @Override
    public String toString() {
        return "players.";
    }
    
}
